package com.sina.auto.components.WebCaptureImpl;

import com.sina.auto.components.SystemInfo.SystemID;

class OSname {
    //检测系统，返回代表系统的字符串
    static String osname(){
        String OSname = "";
        SystemID.EPlatform osname = SystemID.getOSname();
        if(String.valueOf(osname).equals("Windows")){
            OSname =  "chromedriver/Windows/chromedriver.exe";
        }else if(String.valueOf(osname).equals("Linux")){
            OSname = "chromedriver/Linux/chromedriver";
        }else if(String.valueOf(osname).equals("Mac OS X") || String.valueOf(osname).equals("Mac OS")){
            OSname = "chromedriver/Mac/chromedriver";
        }
        return OSname;
    }
}
